<template>
  <div>
    <!--头部-->
    <Head :head="head" @greets="greets"></Head>
    <el-dialog
      :visible.sync="centerDialogVisible"
      width="1000px"
      center>
      <div class="left_essential base">
        <img src="/static/assets/img/dtx1.png" alt="">
        <p v-for="(c,index) in cs" @click="sorts($event, index, c.t)" v-bind:class="{'visible1':nowIndex == index}" :key="c.index">{{ c.name }}</p>
      </div>
      <div class="right_essential" v-if="temp1 == 1">
        <p>尊敬的{{user}}用户，胸痛质控大家庭感谢您的加入</p>
        <div><p><span>组织</span></p><p><span>个人资料</span></p></div>
        <div><p><span>头像</span><img src="/static/assets/img/logo.png" alt=""></p><p><span>姓名</span>{{user}}</p><p><span>头像</span><img src="/static/assets/img/dtx.png" alt=""></p></div>
        <div><p><span>权限</span>{{user}}</p><p><span>权限</span>{{user}}</p></div>
        <div><p><span>简称</span>{{user}}</p><p><span>职务</span>{{user}}</p><p><span>科室</span>{{user}}></p></div>
        <div><p></p><p><span>手机</span>{{user}}<span class="tip">已绑定</span></p><p><span>邮箱</span>{{user}}<span class="tip">已验证</span></p></div>
      </div>
      <div class="right_essential" v-if="temp1 == 2">
        <p>您的安全服务</p>
        <div><p><span class="width_user">用户名</span>{{user}}</p></div>
        <div><p><span>绑定邮箱</span></p><span class="tip2">修改邮箱</span></div>
        <div><p><span>绑定手机</span>{{user}}</p></div>
        <div><p><span>登录密码</span>{{user}}</p><span class="tip2">修改邮箱</span></div>
      </div>
      <div class="both"></div>
    </el-dialog>
    <!--内容-->
    <el-container>
      <el-main style="background-color: #f9f9f9">
        <img src="/static/assets/img/5.png" alt="">
        <div style="display: inline-block;vertical-align: bottom">
          <img src="/static/assets/img/down.png" alt="">
          <p>下载</p>
        </div>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import Head from '@/components/Bg'
import LeftTop from '@/components/Left'
export default {
  data () {
    return {
      centerDialogVisible: false,
      clickOn: false,
      user: '543759843@qq.com',
      nowIndex: 0,
      temp1: 1,
      cs: [
        {name: '账户资料', t: 1},
        {name: '安全设置', t: 2}
      ],
      head: {
        platform: '江苏省胸痛中心质控管理平台',
        analysis: '智能报表',
        name: '李冰冰 ',
        methods: 'greets'
      }
    }
  },
  methods: {
    greets: function () {
      this.centerDialogVisible = true
    },
    sorts (event, index, t) {
      this.nowIndex = index
      this.temp1 = t
    }
  },
  components: {
    Head,
    LeftTop
  }
}
</script>

<style scoped>
  /*布局样式*/
  .el-header, .el-footer {
    height: 120px!important;
    color:#fff;
    background:url(../../static/assets/img/titlebg.png) no-repeat center center;
  }
  .el-aside {
    background-color: #f9f9f9;
    color: #fff;
    text-align: center;
    line-height: 200px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    -moz-box-shadow: rgb(167, 168, 169) 2px 0px 12px;/* 老的 Firefox */
    box-shadow: rgb(167, 168, 169) 2px 0px 12px;
  }
  body > .el-container {
    margin-bottom: 40px;
  }
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
  .el-main{
    text-align: center;
  }
</style>
